export default [
  { name: '登录',
    path: '/user',
    layout: false,
    routes: [
      { path: '/user/login', component: './user/Login' },
      { path: '/user/register', component: './user/Register' },
      { component: './404' }],
  },
  { name:'欢迎页面',path: '/welcome', icon: 'smile', component: './Welcome' },
  {
    path: '/admin',
    icon: 'crown',
    access: 'canAdmin',
    name:'管理页面',
    component: './Admin',
    routes: [
      // { path: '/admin', redirect:'/admin/sub-page'},
      // { path: '/admin/sub-page', icon: 'smile', component: './Welcome' },
      { path: '/admin/user-manage', name: '用户管理',icon: 'smile', component: './Admin/UserManage' },
      { component: './404' },
    ],
  },
  // { icon: 'table', path: '/list', component: './TableList' ,name:'表格页'},
  // { path: '/', redirect: '/welcome' },
  // { component: './404' },
];
